package com.zzx.boot;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zzx.boot.mapper.CategoryMapper;
import com.zzx.boot.pojo.Category;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;

@SpringBootTest
public class CategoryMapping {
    @Resource
    private CategoryMapper mapper;

    @Test
    public void TestPage(){
        Page<Category> page = new Page<>(1,10);
        IPage<Category> page1 = mapper.getPage(page);
        System.out.println(page1);
    }
}
